import json
from config import BASE_PATH


def read_json_file(filename):
    # filename = BASE_PATH + "/data/login_data.json"
    with open(filename,"r",encoding="utf-8") as f:
        json_data = json.load(f)
        list_data = []
        for i in json_data:

            tup = tuple(i.values())
            list_data.append(tup)
        return list_data

if __name__ == '__main__':
    # filename = "C:/Users/Admin/PycharmProjects/bj53_ApiAutoTestFramework/data/login_data.json"
    filename = BASE_PATH + "/data/login_data.json"
    data = read_json_file(filename)
    print(data)
